package net.oschina.app.bean;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * @author HuangWenwei
 * @date 2014年10月10日
 */
@SuppressWarnings("serial")
@XStreamAlias("oschina")
public class TweetsList extends Entity implements ListEntity<Tweet>
{

    public final static int CATALOG_LATEST = 0;
    public final static int CATALOG_HOT = -1;
    public final static int CATALOG_ME = 1;

    @XStreamAlias("tweetcount")
    private int tweetCount;
    @XStreamAlias("pagesize")
    private int pagesize;
    @XStreamAlias("tweets")
    private List<Tweet> tweetslist = new ArrayList<Tweet>();

    public int getTweetCount()
    {
        return tweetCount;
    }

    public void setTweetCount(int tweetCount)
    {
        this.tweetCount = tweetCount;
    }

    public int getPagesize()
    {
        return pagesize;
    }

    public void setPagesize(int pagesize)
    {
        this.pagesize = pagesize;
    }

    public List<Tweet> getTweetslist()
    {
        return tweetslist;
    }

    public void setTweetslist(List<Tweet> tweetslist)
    {
        this.tweetslist = tweetslist;
    }

    @Override
    public List<Tweet> getList()
    {
        return tweetslist;
    }

}
